<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: shanpengfei
  Date: 2019/2/28
  Time: 5:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="basePath" value="/gyp"></c:set>

<jsp:include page="../template_header.jsp"></jsp:include>

<div class="register-form">
    <form action="${basePath}/order/add" method="post">
        <input type="hidden" name="goodsId" value="${goods.id}"><br>
        <input type="hidden" name="money" value="${goods.price}"><br>
        <input type="number" min="1" max="1000" step="1" name="count" placeholder="购买数量"><br>
        <input type="text" name="name" placeholder="收货人姓名"><br>
        <input type="text" name="phone" placeholder="收货人手机"><br>
        <input type="text" name="address" placeholder="收货人地址"><br>

        <input type="submit" value="购买">
    </form>
</div>

<jsp:include page="../template_footer.jsp"></jsp:include>
